package com.guli.eduService.service;

import com.guli.eduService.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.eduService.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author LMZovo
 * @since 2022-02-15
 */
public interface EduChapterService extends IService<EduChapter> {

    //根据课程id查询课程和章节
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    //删除章节
    boolean deleteChapter(String chapterId);

    //根据课程id删除章节
    void removeChapterByCourseId(String courseId);
}